﻿using NDF.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UA.Data.Model.Common;

namespace UA.Framework.Views
{
    public class ViewBase<TEntity> : ViewBase where TEntity : EntityModelBase, new()
    {

        public virtual TEntity ToEntity()
        {
            return base.ToEntity<TEntity>();
        }

        public virtual void CopyForm(TEntity entity)
        {
            entity.CopyTo(this);
        }

    }
}
